package com.ruoyi.xiaoshou.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.api.factory.RemoteFileFallbackFactory;
import com.ruoyi.xiaoshou.domain.SaleOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(contextId = "RemoteSaleOrderService", value = ServiceNameConstants.XIAOSHOU_SERVICE)
public interface RemoteSaleOrderService {

    @PostMapping("/order/updSaleOrder")
    public int edit(@RequestBody SaleOrder saleOrder, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
    @PostMapping("/order/getOrderByCode")
    SaleOrder getOrderByCode(@RequestBody String orderCode);
}
